package com.zuoluo.dp.factory;

public class Test {
	public static void main(String[] args) {
		Car c1 = Car.getInstance();
		Car c2 = Car.getInstance();
		System.out.println(c1==c2);
		//car.run();
		VehicleFactory factory = new PlaneFactory();
		Moveable m = factory.create();
		m.run();
	}
}
